﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeWork05
{
    class Program
    {
        static void Main(string[] args)
        {
            OrderService myOrder = new OrderService();
            myOrder.CreatOrder(20200320, "地址1", "张三");
            myOrder.addOrder(20200320, "手机壳", 20, 1);
            myOrder.addOrder(20200320, "充电宝", 100, 1);
            myOrder.addOrder(20200320, "充电线", 30, 2);
            myOrder.CreatOrder(20200321, "地址2", "客户2");
            myOrder.addOrder(20200321, "乒乓球拍", 55, 1);
            myOrder.OutOrder();
            myOrder.FindOrder();
            myOrder.CreatOrder(20200000, "地址3", "客户3");
            myOrder.addOrder(20200000, "笔记本", 5000, 1);
            Console.WriteLine("排序前:");
            myOrder.OutOrder();
            myOrder.myList.Sort();
            Console.WriteLine("排序后:");
            myOrder.OutOrder();
        }
    }
}
